﻿<%@ Page Language="C#" %>

<%@ Import Namespace="wojilu" %>
<%@ Import Namespace="wojilu.View" %>
<%@ Import Namespace="wojilu.Apps.Qycms.Domain" %>
<%@ Import Namespace="wojilu.Apps.Qycms.Service" %>

<%PowerGroup modelpowergroup = v.data("powergroup") as PowerGroup; %>
<%var bllPowerGroupService = new PowerGroupService(); %>
<%List<Advert> list = v.data("list") as List<Advert>; %>

<%if (list.Count > 0){ %>
<% foreach (var row in list) { %>
<div class="infolist" title="<%=row.title %> - <%=row.addtime %>" onselectstart="return false;" <%if (bllPowerGroupService.powercheck("communicate", "advertedit", modelpowergroup)) { %>ondblClick="javascript:parent.onbotton('<%=row.title %>-_{setedit_botton}','<%=link.to(new wojilu.Web.Controller.Admin.Qycms.AdvertController().AdvertEdit, row.Id) %>?freshid='+Math.random()+'&iframename='+self.frameElement.getAttribute('name'),false,'articleeditbotton<%=row.Id %>',self.frameElement.getAttribute('name'));"<%} %>>
	<table border="0" style="border-collapse:collapse" width="100%" bordercolor="#FFFFFF">
		<tr>
			<td width="5%"><input type="checkbox" name="selectinfoid" value="<%=row.Id %>"></td>
			<td width="8%"><input type="hidden" name="infoid" value="<%=row.Id %>"><input type="text" name="infopid" size="3" value="<%=row.pid %>" class="infoInput" onclick="if(this.value=='<%=row.pid %>'){this.value = '';}else {this.select();}" onblur="if(this.value ==''){this.value ='<%=row.pid %>';}" /></td>
			<td width="8%"><%=row.Id %></td>
			<td width="38%"><%=strUtil.CutString(row.title,20) %></td>
			<td width="20%"><%=row.adtypename %></td>
			<td width="8%" id="infotype">
				<table>
					<tr>
						<td><%if(row.isclass==1){ %><span class="audit_ok" title="_{article_audit_ok}"></span><%}else{ %><span class="audit_no" title="_{article_audit_no}"></span><%} %></td>
					</tr>
				</table>
			</td>
			<td width="13%" id="infotype">
                 <%if (bllPowerGroupService.powercheck("communicate", "advertedit", modelpowergroup)) { %>
				<table border="0" style="border-collapse:collapse" bordercolor="#FFFFFF">
					<tr>
						<td><a class="setedit" onclick="javascript:parent.onbotton('<%=row.title %>-_{setedit_botton}','<%=link.to(new wojilu.Web.Controller.Admin.Qycms.AdvertController().AdvertEdit, row.Id) %>?freshid='+Math.random()+'&iframename='+self.frameElement.getAttribute('name'),false,'articleeditbotton<%=row.Id %>',self.frameElement.getAttribute('name'));" id="articleeditbotton<%=row.Id %>" href="#body" title="<%=row.title %>_{setedit_botton}" hidefocus="true">_{setedit_botton}</a></td>
						<td class="padding-left3"><a class="setedit" onclick="javascript:parent.onbotton('<%=row.title %>-_{setcopy_botton}','<%=link.to(new wojilu.Web.Controller.Admin.Qycms.AdvertController().AdvertCopy, row.Id) %>?freshid='+Math.random()+'&iframename='+self.frameElement.getAttribute('name'),false,'articleeditbotton<%=row.Id %>',self.frameElement.getAttribute('name'));" id="articleeditbotton<%=row.Id %>" href="#body" title="<%=row.title %>_{setcopy_botton}" hidefocus="true">_{setcopy_botton}</a></td>
					</tr>
				</table>
				<%} %>
			</td>
		</tr>
	</table>
</div>
<%} %>
<%}else{%>
<div class="infolist">
	<table border="0" style="border-collapse:collapse" width="100%" bordercolor="#FFFFFF">
		<tr>
			<td align="center">_{list_nothing_title}</td>
		</tr>
	</table>
</div>
<%} %>